<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php __('Didded'); ?>
            <?php echo $title_for_layout; ?>
        </title>        
        <?php
        echo $this->Html->meta('icon');
        echo $this->Html->css(array('cake.generic', 'jNice', 'jquery.jscrollpane', 'nivo-slider', 'template'));
        ?>
        <script type="text/javascript">
            baseUrl="<?php echo Configure::read("baseUrl"); ?>";
        </script>
        <?php
        echo $this->Html->script(array('jquery', 'jquery.main', 'smartrollover', 'jNice', 'jquery.jscrollpane.min', 'jquery.mousewheel'));

        echo $scripts_for_layout;
        ?>
        <script type="text/javascript">
            jQuery.noConflict();
            jQuery(document).ready(function() {                               
                jQuery(".createPopup").click(function(e){
                    e.preventDefault();
                    showPop(this);});
                
                 jQuery(".add_program").click(function(e){
                    e.preventDefault();
                    showPop(this);});
                jQuery(".edit_profile").click(function(e){
                    e.preventDefault();
                    showPop(this);})
                
                jQuery(document).keypress(function(a){
                    if((a.keyCode==27) && (popupStatus==1)){
                        disablePopup();
                    }
                });
                jQuery("a.closeOption").click(function(){
                    disablePopup();
                    return false});
            });
            //NIVO SLIDER
            jQuery(window).load(function() {
                jQuery('.nivoSlider').nivoSlider({
                    effect:'fade', // Specify sets like: fold,random, fade,sliceDown
                    slices:15, // For slice animations
                    boxCols: 8, // For box animations
                    boxRows: 4, // For box animations
                    captionOpacity:1,
                    animSpeed:500, // Slide transition speed
                    pauseTime:3000, // How long each slide will show
                    startSlide:0, // Set starting Slide (0 index)
                    directionNav:false, // Next & Prev navigation
                    directionNavHide:true, // Only show on hover
                    controlNav:true // circles navigation
                    
                });
                
            });	
        </script>
        <?php //echo $this->element("scroll_element",array("cache"=>true));?>
    </head>
    <body> 

        <div class="wrapper">
            <div class="header">
                <div class="hdlft"><a href="<?php echo Configure::read('baseUrl'); ?>"><?php echo $this->Html->image("logo.gif", array("alt" => "Didded logo", "width" => "106", "height" => "45", "border" => "0", "class" => "logo")); ?></a> <?php echo $this->Html->image("title.gif", array("alt" => "Progrees bar")); ?></div>
                <div class="hdrht">
                        <?php
    echo $this->Html->link(
    $this->Html->image("request_off.png", array("alt" => "SignUp","class" => "pad", "width" => "167", "height" => "51")),
    "/users/add/",
    array('escape' => false,'class'=>"createPopup",'title'=>'CREATE A PROFILE')
    );
    ?>

                    
                    <div class="topnav"><a href="<?php echo Configure::read('baseUrl'); ?>">home</a> <a href="<?php echo Configure::read('baseUrl'); ?>">contact</a> <a href="<?php echo Configure::read('baseUrl'); ?>">about</a> <a href="<?php echo Configure::read('baseUrl'); ?>">FAQ</a></div>
                    <a href="<?php echo Configure::read('baseUrl'); ?>"><?php echo $this->Html->image("facebook_off.png", array("class" => "fb", "width" => "165", "height" => "103")); ?></a></div>
            </div>
            <div id="content">

                <?php echo $this->Session->flash(); ?>

                <?php echo $content_for_layout; ?>

            </div>

            <div class="footer"><a href="<?php echo Configure::read('baseUrl'); ?>">home</a><a href="<?php echo Configure::read('baseUrl'); ?>">terms</a><a href="<?php echo Configure::read('baseUrl'); ?>">privacy</a><a href="<?php echo Configure::read('baseUrl'); ?>">sign in</a></div>
        </div>
      
        <!--Popup Zone -->
        <div class="popupBg">&nbsp;</div>

        <div class="popupWrapper" id="create-profile-popup" style="display:none;">
            <a href="javascript:void(0)" class="closeOption">&nbsp;</a>
            <span class="arrowInd arrowTopSide">&nbsp;</span>
            <div class="popupTitleBar"><div class="popupTitleRight"><div></div></div></div>
            <div class="popupContent">
                <div class="popupYbgRight">
                    <div class="popupX">
                        
                    </div>
                </div>
            </div>
            <div class="popupBottomBar"><div class="popupBottomRight"><div>&nbsp;</div></div></div>
        </div>
        <!--/Popup: CREATE A PROFILE-->

        <?php echo $this->element('sql_dump'); ?>
    </body>
</html>